import java.util.ArrayList;
import java.util.List;

public class FootballGame {
    private List<Spectator> spectators;

    public FootballGame() {
        spectators = new ArrayList<Spectator>();
    }

    public void goalScored(Team team) {
        for (Spectator spectator : spectators) {
            spectator.reactsToGoalScore(team);
        }
    }

    public void enterGame(Spectator spectator) {
        spectators.add(spectator);
    }
}
